package com.zhanglijie.theory.immutable.effective;

/**
 * @author zhanglijie
 * @version 1.0
 * @since 1.1.0 2022/7/26 0026 23:28
 */
public final class Point {
    final int x;
    final int y;

    public Point(int x, int y) {
        this.x = x;
        this.y = y;
    }
    public int getX(){
        return this.x;
    }
    public int getY(){
        return this.y;
    }

    @Override
    public String toString() {
        return "Point{" + "x=" + x + ", y=" + y + '}';
    }
}
